<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form method="post" action="{{url('Admin/index')}}" style="padding-left: 20px;border: 1px">
    {{csrf_field()}}

    <div style="background-color: #2ca02c">
        @if(count($errors)>0)
            @if(is_object($errors))
                @foreach($errors->all() as $error)
                    <p>{{$error }}</p>
                @endforeach
            @else
                {{$errors}}
            @endif

        @endif
    </div>
    <tr>
        <th><i class="yi" style="width: 150px">*</i>父级分类:</th>
        <td><select name="cate_pid">
                <option value="0">==请选择==</option>


                    @foreach($addresoult as $v)

                   <option value="{{$v->cate_id}}">{{$v->cate_name}}</option>
                    @endforeach
            </select><br/></td>
    </tr>
    <tr>
        <th>
            <i>*</i>分类名称:
        </th>
        <td> <input type="text" name="cate_name"/><i>*</i>分类名称必须填写<br/></td>
    </tr>
    <tr>
        <th>
            分类标题：
        </th>

   <td> <input type="text" name="cate_title"/><br/></td>
    </tr>
   <tr>
       <th>
           关键词：
       </th>
     <td> <textarea name="cate_keywords"></textarea><br/></td>
   </tr>
    <tr>
        <th>
            描述:
        </th>
        <td> <textarea name="cate_description"></textarea><br/></td>
    </tr>
    <tr>
        <th> <i class="required">*</i>排序</th>
        <td><input type="text" name="cate_order"/><br/></td>
    </tr>
    <tr>
        <td>
            <input type="submit" value="确定添加"/>
            <input type="reset" value="返回"/>

        </td>
    </tr>

</form>
</body>
</html>